package com.dongdongshop.service.cart;

import com.dongdongshop.pojo.cart.Cart;

import java.util.List;

public interface CartService {
    List<Cart> addCartList(List<Cart> cartList, Long itemId, Integer num);

    List<Cart> getCarListFromRedis(String username);

    void savaCartListToRedis(String username, List<Cart> cartList);

    List<Cart> mergeCartListCookieAndRedis(List<Cart> cartList, List<Cart> cartListFromRedis);
}
